# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ristretto
pkgver=0.13.1
pkgrel=0
pkgdesc="Image viewer for Xfce"
url="https://docs.xfce.org/apps/ristretto/start"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="libxfce4ui-dev dbus-glib-dev file-dev libexif-dev thunar-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/apps/ristretto/${pkgver%.*}/ristretto-$pkgver.tar.bz2"
options="!check" # no tests

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-debug
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d218f1567341f84572ba15be70756012c149fe5dbd566296900aced6c9aa6e98af18ab178e84d9483b6ea1fde0a7834007513c209d315ff1ecc9ea249bb5607a  ristretto-0.13.1.tar.bz2
"
